package utils;

public class util {

	/**<p><b>Description: </b>Replaces the character <b>'</b> (single quote) with <b>\'</b> to 
	 * prevent failure to perform queries to the database.<p/>
	 * 
	 * @param parameter text of the where clause
	 * @return the text of the where clause but adapted for the query
	 */
	public static String adaptParameterForQuery(String parameter)
	{
		return parameter.replaceAll("'", "\'");		
	}
}
